<template>
<div>Login页..........</div>
</template>

<script>
export default {
  name: "Login",
  beforeRouteEnter(to,from,next){
    console.log(to,from,next,'进入路由前')
    // next(vm=>{
    //   console.log(vm,'进入组件前')
    // })
    next(function (){
      console.log(this,'进入组件前')
    })
  },
  beforeRouteUpdate(to,from,next){
    console.log(to,from,next,'beforeRouteUpdate')
    next()
  },
  beforeRouteLeave(to,from,next){
    console.log(to,from,next,'beforeRouteLeave')
    next()
  },
  beforeCreate() {
    console.log('***beforeCreate')
  },
  created() {
    console.log('***created')
  },
  mounted() {
    console.log('***mounted')
  }
}
</script>

<style scoped>

</style>